package com.xiaobange.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.xiaobange.mapper.UserMapper;
import com.xiaobange.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Objects;

/**
 * @version 1.0
 * @Author 小班哥
 * @Date 2025/4/24 14:44
 * @Explain 测试
 */
@RestController
public class HelloController {
    @Autowired
    UserMapper userMapper;

    @GetMapping(path = "/hello")
    public String hello(){
        return "hello";
    }

    @GetMapping("/test")
    public Object test(){
        return userMapper.selectAll();
    }
}
